package chen.videoedit;

import android.os.Bundle;
import android.os.Environment;
import android.view.View;

/**
 * test测试
 */
public class TestActivity extends BasisActivity {
    private VideoAudioDispose dispose;
    private String audio;
    private String video;
    private String path_save;

    @Override
    public int setlayoutResID() {
        return R.layout.activity_test;
    }

    @Override
    public void initialView(Bundle arg0) {
        findViewById(R.id.activity_testa).setOnClickListener(this);
        findViewById(R.id.activity_testb).setOnClickListener(this);
    }

    @Override
    public void setActivity() {
        audio = Environment.getExternalStorageDirectory() + "/audio.mp3";//音乐
        video = Environment.getExternalStorageDirectory() + "/test.mp4";//视频
        path_save = Environment.getExternalStorageDirectory() + "/audio_add.mp4";//音乐视频合成保持路径
        dispose = VideoAudioDispose.newVideoAudioDispose(this, video, audio, path_save);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.activity_testa:

                break;
            case R.id.activity_testb:

                break;
        }
    }





}
